import http from '@/common/utils/request.js'

export const article = {
	//获取列表
	getArticleList(data){
		return http.get('/system/articleForP/', {params:data, custom:{}})
	},
	//获取详情
	getItemById(data){
		return http.post('/system/article/getItemById/', data, {custom:{}})
	},
	//创建
	createArticle(data){
		return http.post('/system/article/createAction/', data, {custom:{}})
	},
	//新增
	updateArticle(data){
		return http.post('/system/article/updateAction/', data, {custom:{}})
	},
}